<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <div @click="demo01" style="background-color: blue;height: 50px">
            <button @click.stop="demo02()">点我</button>
        </div>
    </div>

    <script>
        new Vue({
            el:"#app",
            methods:{
                demo01(){
                   alert("div的单击事件")
                },
                demo02(){
                    alert("button的单击事件")
                }
            }
        })
    </script>
</body>
</html>